#pragma once
#include "Game/Game/GameDefine.h"
class CCardSprite : public Node
{
public:
	enum
	{
		ST_SELECTED,
		ST_UNSELECTED,
	};
public:
	CCardSprite(void);
	~CCardSprite(void);
	static CCardSprite* create(const BYTE& card,int chairId,int cardType);

	bool setCard(const BYTE& card, int charId, int cardType);

	Rect rect();
	void selected();
	void setStatus(int status) ;
	const BYTE& getCardValue() { return m_stCard; }
	int getStatus(){ return m_nStatus; }

	void clear();
private:
	BYTE		m_stCard;
	int			m_nStatus;

	int			m_chairId;
	int			m_cardType;
};

